<script setup>
import { ref } from 'vue';

const active = ref(0);
const onClickLeft = () => history.back();
</script>

<template>
    <div>
      <van-nav-bar
        title="购物商城"
        left-text="返回"
        left-arrow
        @click-left="onClickLeft"
      />
      <router-view></router-view>
      <van-tabbar v-model="active">
        <van-tabbar-item replace to="/" icon="home-o">主页</van-tabbar-item>
        <van-tabbar-item replace to="/about" icon="setting-o">我</van-tabbar-item>
      </van-tabbar>
    </div>
</template>

<style scoped>
</style>
